package com.example.demo.client.vm.sysbasequery;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author zhengmf
 * @Date 2018/12/26  17:16
 */
@ApiModel("操作日志")
public class LogVm implements Serializable {
    private static final long serialVersionUID = -8962659612296366138L;
    @ApiModelProperty("ID")
    private Long id;
    @ApiModelProperty("操作结果")
    private String operateResult;
    @ApiModelProperty("操作人")
    private String userName;
    @ApiModelProperty("备注")
    private String remarks;
    @ApiModelProperty("操作时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date operateTime;
    @ApiModelProperty("模快名称")
    private String moduleDesc;
    @ApiModelProperty("功能名称")
    private String operateDesc;
    @ApiModelProperty("输入参数")
    private String input;
    @ApiModelProperty("输出内容")
    private String output;
    @ApiModelProperty("结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date endTime;
    @ApiModelProperty("请求ip")
    private String requestIp;
    @ApiModelProperty("请求URL")
    private String requestUrl;
    @ApiModelProperty("耗时")
    private Long times;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOperateResult() {
        return operateResult;
    }

    public void setOperateResult(String operateResult) {
        this.operateResult = operateResult;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public String getModuleDesc() {
        return moduleDesc;
    }

    public void setModuleDesc(String moduleDesc) {
        this.moduleDesc = moduleDesc;
    }

    public String getOperateDesc() {
        return operateDesc;
    }

    public void setOperateDesc(String operateDesc) {
        this.operateDesc = operateDesc;
    }

    public String getInput() {
        return input;
    }

    public void setInput(String input) {
        this.input = input;
    }

    public String getOutput() {
        return output;
    }

    public void setOutput(String output) {
        this.output = output;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getRequestIp() {
        return requestIp;
    }

    public void setRequestIp(String requestIp) {
        this.requestIp = requestIp;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public Long getTimes() {
        return times;
    }

    public void setTimes(Long times) {
        this.times = times;
    }

    @Override
    public String toString() {
        return "LogVm{" +
            "id=" + id +
            ", operateResult='" + operateResult + '\'' +
            ", userName='" + userName + '\'' +
            ", remarks='" + remarks + '\'' +
            ", operateTime=" + operateTime +
            ", moduleDesc='" + moduleDesc + '\'' +
            ", operateDesc='" + operateDesc + '\'' +
            ", input='" + input + '\'' +
            ", output='" + output + '\'' +
            ", endTime=" + endTime +
            ", requestIp='" + requestIp + '\'' +
            ", requestUrl='" + requestUrl + '\'' +
            ", times=" + times +
            '}';
    }
}
